package com.tyf.test02.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by tyf on 2018/1/23
 */
@Controller
public class IndexController {

    /**
     * 首页根路径做个跳转
     */
    @RequestMapping("/")
    public String index() {
        return "/templates/index.html";
    }

}
